package com.hx.io.stdstream;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

/**
 * @author jxlgcmh
 * @create 2019-05-09 19:27
 */
public class Demo1 {
    public static void main(String[] args) throws IOException {
        InputStream in = System.in;

        InputStreamReader reader = new InputStreamReader(in);
        BufferedReader bufferedReader = new BufferedReader(reader);
        while (true) {
            String line = bufferedReader.readLine();
            if ("exit".equalsIgnoreCase(line)) {
                break;
            }
            System.out.println(line);
        }
        bufferedReader.close();

    }
}
